package com.yidu.BusinessParament.controller;

import com.yidu.BusinessParament.service.SettleMentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author 苏彬
 * @date 2023/2/8 8:52
 **/
@RestController
public class SettleMentController {
    @Autowired
    private SettleMentService service;

    @RequestMapping("/selectSettleMent")
    public Map selectSettleMent(int page, int row, String status,String dealTime,String dealWay) {
        System.out.println(dealTime+"--"+dealWay);
        return service.selectSettleMent(page, row, status,dealTime                                ,dealWay);
    }

    @RequestMapping("/updateSettleMent")
    public int updateSettleMent(String myJson,Boolean flag) {
        return service.updateSettleMent(myJson,flag);
    }
}
